html{
    user-select: none;
    width: 100%;
    height: 100%;
}
body{
    background: linear-gradient(to right, #3FB6A8, #7ED386);
}
@keyframes typing{
    0%{ width: 0}
}
@keyframes text-blink{
    50%{border-color: transparent}
    
}
/* 一级css */
#mainBox{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 700px;  
    height: 500px;
    /* outline: 1px solid black; */
    background-color: #fff;
    box-shadow: 2px 5px 20px rgba(#777, .5);
    /*tip1: 如果用margin: 5em auto;父级元素body也会随之移动 */
}
/* 二级css */
#mainBox .leftTab{
    width: 20%;
    height: 100%;
    padding: 30px 0;
    margin-top: -30px;
    margin-left: 30px;
    background-color: #7ED386;
}
#mainBox .rightTab{
    position: relative;
    width: 70%;
    height: 90%;
    margin-right: 30px;
    margin-top: 30px;
    background-color: #fff;
    font-family: "Microsoft YaHei";
}
/* 三级css */
#mainBox .rightTab>section{
    overflow-y: auto;
    position: absolute;
    top: 0;
	left: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-in;
}
.tab-title{
    color: rgb(147, 218, 153);
    font-size: 25px;
    margin-bottom: 40px;
}
.magBox{
    margin-bottom: 15px;
}
.magBox .mbox-uppertit{
    color: #777;
    font-family: "Roboto", sans-serif;
    width: 80%;
    text-transform: uppercase;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.magBox .mbox-message{
    border-width: 3px;
    border-style: solid;
    border-image: linear-gradient(to right, #3FB6A8, rgba(126, 211, 134, 0.5)) 1 0%;
    border-top: 0;
    width: 80%;
    font-family: Verdana;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 7px 0;
    color: #080707b6;
}
#userName{
    display: inline-block;
    overflow: hidden;
    font-weight: 500;
    animation: 2s typing steps(2, end), 0.5s text-blink step-end infinite;
    width: 2.3em;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
}
.photo-wrap{
    width: 100%;
    background-color: green;
    border-radius: 50%;
}
#userPhoto{
    display: block;
    border-radius: 50%;
    /* 设置设置百分比单位下的正方形 */
    padding: 100% 0 0;
    background: url('../img/omito.jpg') no-repeat 100% 100%/cover;
}
/* 旋转 */
#userPhoto:hover{
    transform: rotate(666turn);
    transition-duration: 59s;
    transition-timing-function: cubic-bezier(.34, 0, .84, 1);
}
#lt-tablist{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 80%;
}
#lt-tablist>li{
    display: flex;
    height: 15%;
    background-color: #A9E190;
    margin-bottom: 25px;
    transition:all 0.8s, color 0.3s 0.3s;
}
/* a标签的字体颜色不继承父级 */
#lt-tablist>li>span{
    margin: auto;
    font-family: "Montserrat";
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all .5s ease-in;
}
/* js交互属性放在下面权值较高 */
#lt-tablist>li:hover,#lt-tablist>li.active{
    box-shadow: 0 0 0 10px #9ACC5F inset, 0 0 0 150px rgba(0,0,0,0.5) inset;
}
#lt-tablist>li:hover span,#lt-tablist>li.active span{
    color: #fff;
}
/* 针对的rightTap的属性 */
#mainBox .rightTab>section.show{
    visibility: visible;
    z-index: 999;
    opacity: 1;
}
